package com.hghivln.blog.service;

import com.hghivln.blog.common.lang.Result;
import com.hghivln.blog.entity.Music;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hghivln.blog.pojo.dto.MusicDto;
import com.hghivln.blog.pojo.vo.MusicVo;

import java.util.List;

/**
 * <p>
 * 歌曲表 服务类
 * </p>
 *
 * @author hghivln
 * @since 2021-09-16
 */
public interface MusicService extends IService<Music> {

    void deleteById(Long id);

    MusicVo getInfo(Long id);

    void updateByMId(MusicDto musicDto);

    void toggleEnable(MusicDto musicDto);

    Result<?> loadAllMusic(MusicDto musicDto);

    void saveMusic(MusicDto musicDto);

    List<Music> getAllEnable();
}
